package com.wwwzh.himalayafm.adapter.recommend;

import android.databinding.BindingAdapter;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

/**
 * Created by weizz on 2016/12/5.
 */

public class RecommBindingAdapter {
    @BindingAdapter("loadUrl")
    public static void loadImage(ImageView view, String url){
        Picasso.with(view.getContext()).load(url).into(view);
    }
}
